/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { responseSuccess } from '../utils';
import Mock from 'mockjs';
const { mock } = Mock;

export default {
  'POST /jdk/bills/make': (req: Request, res: Response) => responseSuccess(req, res),
  'POST /jdk/bills/list': (req: Request, res: Response) => {
    res.send(
      mock({
        code: '0',
        msg: 'success',
        'data|10': [
          {
            id: '@id',
            file_name: '对账单名称',
            'file_path|1': [
              'https://upload.kuaidihelp.com/cd_delivery/report/deliveryOrder/83b4c7d0dfb93b6d7b8e624f81f5d4de/2023年05月gxd运力对账数据.csv',
              '',
            ],
            user: '@cname',
            created_at: '@now',
            'status|1': [0, 1, 2, 3],
          },
        ],
      }),
    );
  },
};
